import java.util.Scanner;

public class HJ21 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String output = "";
        while(sc.hasNext()) {
            String str = sc.nextLine();
            for(int i = 0; i < str.length(); i++) {
                char ch = str.charAt(i);
                if(ch >= '0' && ch <= '9') {//是数字
                    output += ch;
                } else if(ch >= 'A' && ch <= 'Z') {//是大写字母
                    char chLower = Character.toLowerCase(ch);//转小写
                    if(chLower == 'z') {
                        output += 'a';
                    } else {
                        output += (char)(Integer.valueOf(chLower) + 1);
                    }

                } else if(ch >= 'a' && ch <= 'z') {//是小写
                    if(ch <= 'c'){
                        output += 2;
                    } else if(ch <= 'f'){
                        output += 3;
                    } else if(ch <= 'i'){
                        output += 4;
                    } else if(ch <= 'l'){
                        output += 5;
                    } else if(ch <= 'o'){
                        output += 6;
                    } else if(ch <= 's'){
                        output += 7;
                    } else if(ch <= 'v'){
                        output += 8;
                    } else if(ch <= 'z'){
                        output += 9;
                    }
                }
            }
        }

        System.out.println(output);
    }
}
